﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using KeyCore.Domain.Model;

namespace KeyCore.Framework.Contexts
{
    public interface IUserContext : IDisposable
    {
        IDbSet<User> Users { get;  }
        IDbSet<UserRoles> UserRoles { get; }
       // void UpdateGraph<T>(DbContext context, T entity, Expression<Func<IUpdateConfiguration<T>, object>> mapping);
    }

    public class UserContext : BaseContext<UserContext>, IUserContext
    {
        public IDbSet<User> Users { get; set; }
        public IDbSet<UserRoles> UserRoles { get; set; }

    }

}
